import city from "./city"
import {HttpGetjobType} from './http'
import {ref} from "vue"


export function selectCity (value:string){
	
	let cityArray= value.split(',')
	let cityName = ""
	let cityMap:any = city
	for(let k in cityMap){
		if(k == cityArray[0]){
			const result = cityMap[k]
			// cityName = result.name+'.'
			for(let c in result.child){
				if(c == cityArray[1]){
					// callback(result.child[c].name)
					cityName = result.child[c].name
				}
			}
		}
	}
	return cityName
	
}